<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateIndexSlideshowsTable extends Migration
{

    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('index_slideshows', function (Blueprint $table) {
            $table->increments('id');
            $table->text('pic');
            $table->string('skip_type', 191)->nullable()->comment("跳转类型");
            $table->integer('skip_id')->default(null)->nullable()->comment("跳转id");
            $table->text('json')->nullable()->comment("json");
            $table->integer('sort')->default(0)->comment("排序值");
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('index_slideshows');
    }
}
